package xpermission

import (
	"context"
	"gf-xb-api/internal/consts"

	"github.com/gogf/gf/v2/frame/g"
)

// GetLoginUserUUID 获得当前登录用户UUID
func GetLoginUserUUID(ctx context.Context) string {
	r := g.RequestFromCtx(ctx)
	return r.GetCtxVar(consts.JWT_INFO_UUID).String()
}
